<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>删除界面</title>
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
</head>

<script type="text/javascript">
    function getValue() {
        C1=window.location.href.split("?")[1];
        C2=C1.split("=")[1];
        htmlobj = $.ajax({
            method:"POST",
            url:"http://139.199.210.127:8080/delInfoById",
            data:{id:C2},
            dataType:"json",
            success:function(data){
                if(data='1'){
                    window.location.href='index.html';
                }else {
                    alert("删除失败～！请联系管理员！")
                }
            },
            error:function(){
                alert("error");
            }
        });
    }
</script>
<body onload="getValue()">

</body>
</html>